package com.example.his.api.mis.controller.form.appointment;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class HasAppointmentTodayForm {
  
  @NotBlank(message = "name不能为空")
  @Pattern(regexp = "^[\\u4e00-\\u9fa5]{1,10}$", message = "name格式错误")
  private String name;
  
  @NotBlank(message = "sex不能为空")
  @Pattern(regexp = "^男$|^女$", message = "sex格式错误")
  private String sex;
  
  @NotBlank(message = "pid不能为空")
  @Pattern(regexp = "^[0-9Xx]{18}$", message = "pid格式错误")
  private String pid;
}
